{
 "cells": [
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2024-05-10T09:05:37.758071Z",
     "start_time": "2024-05-10T09:05:37.582278Z"
    }
   },
   "cell_type": "code",
   "source": "import numpy as np",
   "id": "5ab32ad9983f7018",
   "execution_count": 1,
   "outputs": []
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2024-05-10T09:05:57.811163Z",
     "start_time": "2024-05-10T09:05:57.790125Z"
    }
   },
   "cell_type": "code",
   "source": [
    "x = [1,2,3,4]\n",
    "x = np.array(x)\n",
    "x"
   ],
   "id": "d182284e8c25fd58",
   "execution_count": 4,
   "outputs": []
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2024-05-10T09:07:43.145384Z",
     "start_time": "2024-05-10T09:07:43.128715Z"
    }
   },
   "cell_type": "code",
   "source": [
    "y = np.arange(1, 10, 2)\n",
    "y"
   ],
   "id": "f81fa4db72ee4bb",
   "execution_count": 7,
   "outputs": []
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2024-05-10T09:14:40.978727Z",
     "start_time": "2024-05-10T09:14:40.952489Z"
    }
   },
   "cell_type": "code",
   "source": [
    "z = np.zeros([2,2])\n",
    "z"
   ],
   "id": "b57cc0f44d183ee1",
   "execution_count": 10,
   "outputs": []
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2024-05-10T09:15:13.705899Z",
     "start_time": "2024-05-10T09:15:13.690687Z"
    }
   },
   "cell_type": "code",
   "source": [
    "m = np.eye(3)\n",
    "m"
   ],
   "id": "385e5312c59a165d",
   "execution_count": 11,
   "outputs": []
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2024-05-10T09:17:15.436162Z",
     "start_time": "2024-05-10T09:17:15.427131Z"
    }
   },
   "cell_type": "code",
   "source": [
    "n = np.random.randn(10)\n",
    "n"
   ],
   "id": "8e3fed3a50c1e671",
   "execution_count": 13,
   "outputs": []
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2024-05-10T09:18:07.612224Z",
     "start_time": "2024-05-10T09:18:07.596918Z"
    }
   },
   "cell_type": "code",
   "source": [
    "i = np.random.randint(10, size=20).reshape(4,5)\n",
    "i"
   ],
   "id": "17d3722e6648f3f0",
   "execution_count": 15,
   "outputs": []
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2024-05-10T09:19:38.584907Z",
     "start_time": "2024-05-10T09:19:38.576310Z"
    }
   },
   "cell_type": "code",
   "source": [
    "j = np.mat([[1,2,3], [4,5,6]])\n",
    "j"
   ],
   "id": "4ad5bca4b0e5773b",
   "execution_count": 16,
   "outputs": []
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2024-05-10T09:27:23.183589Z",
     "start_time": "2024-05-10T09:27:23.169164Z"
    }
   },
   "cell_type": "code",
   "source": [
    "k = np.mat([[1,2], [4,5], [7,8]])\n",
    "k"
   ],
   "id": "e8f780416172631f",
   "execution_count": 23,
   "outputs": []
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2024-05-10T09:27:25.251257Z",
     "start_time": "2024-05-10T09:27:25.234409Z"
    }
   },
   "cell_type": "code",
   "source": "j*k",
   "id": "ff1a7c45791dd70a",
   "execution_count": 24,
   "outputs": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
